#include "StockStrategy.h"

#include "StockNamespace.h"
#include "StockTypes.h"

#include "StrategyImpl.h"


USING_STOCK_NS

StockStrategy::StockStrategy()
{
	_strategy = new StrategyImpl();
}

StockStrategy::~StockStrategy()
{
	delete _strategy;
}

void StockStrategy::SetPrices(std::vector<StockPrice> prices)
{
	_strategy->SetPrices(prices);
}

void StockStrategy::Calc()
{
	_strategy->Calc();
}

StockProfit StockStrategy::GetMaxProfit()
{
	return _strategy->GetMaxProfit();
}

std::string StockStrategy::GetTransactions()
{
	return _strategy->GetTransactions();
}
